<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Tag extends Model
{

    use SoftDeletes;
    //
    protected $table = 'tags';
    protected $fillable = ['tag'];

    public function articles()
    {
        return $this->morphedByMany(Article::class, 'taggable');
    }
}
